{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "446810ff",
   "metadata": {},
   "source": [
    "# 本周主要内容：地图接口-高德API"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "36d31a02",
   "metadata": {},
   "source": [
    "## 什么是POI?\n",
    "## 应用领域有哪些？"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "b022e8ee",
   "metadata": {},
   "source": [
    "## 基于LBS环境下的 高德POI\n",
    "#### 搜索服务API是一类简单的HTTP接口，提供多种查询POI信息的能力，其中包括关键字搜索、周边搜索、多边形搜索、ID查询四种筛选机制。\n",
    "1. 关键字搜索：通过用POI的关键字进行条件搜索，例如：肯德基、朝阳公园等；同时支持设置POI类型搜索，例如：银行\n",
    "2. 周边搜索：在用户传入经纬度坐标点附近，在设定的范围内，按照关键字或POI类型搜索；\n",
    "3. 多边形搜索：在多边形区域内进行搜索\n",
    "4. ID查询：通过POI ID，查询某个POI详情，建议可同输入提示API配合使用"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "f2673a93",
   "metadata": {},
   "source": [
    "* 接口URL地址\n",
    "* https://restapi.amap.com/v3/place/text?parameters"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "2eb7d7a6",
   "metadata": {},
   "source": [
    "* 查询的两种参数：\n",
    "1. keywords(查询关键字)\n",
    "2. types(查询POI类型)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "ebcb8199",
   "metadata": {},
   "source": [
    "### 基于关键词搜索"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 37,
   "id": "19280ed8",
   "metadata": {},
   "outputs": [],
   "source": [
    "import requests"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 38,
   "id": "0577953d",
   "metadata": {},
   "outputs": [],
   "source": [
    "POI_url = 'https://restapi.amap.com/v3/place/text?parameters'\n",
    "\n",
    "payload = {\n",
    "    'key':'9c99ed4faa0334c7c9d7cb9d12e8b3d4',\n",
    "    'keywords':'潮汕汤粉',\n",
    "    'extensions':'all',\n",
    "    \n",
    "}\n",
    "\n",
    "r = requests.get(url=POI_url, params=payload )"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 39,
   "id": "b116e38d",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'suggestion': {'keywords': [],\n",
       "  'cities': [{'citycode': '020',\n",
       "    'adcode': '440100',\n",
       "    'num': '1356',\n",
       "    'name': '广州市'},\n",
       "   {'citycode': '0755', 'adcode': '440300', 'num': '1220', 'name': '深圳市'},\n",
       "   {'citycode': '0769', 'adcode': '441900', 'num': '842', 'name': '东莞市'},\n",
       "   {'citycode': '0757', 'adcode': '440600', 'num': '483', 'name': '佛山市'},\n",
       "   {'citycode': '0752', 'adcode': '441300', 'num': '355', 'name': '惠州市'},\n",
       "   {'citycode': '0760', 'adcode': '442000', 'num': '216', 'name': '中山市'},\n",
       "   {'citycode': '0756', 'adcode': '440400', 'num': '133', 'name': '珠海市'},\n",
       "   {'citycode': '0797', 'adcode': '360700', 'num': '57', 'name': '赣州市'},\n",
       "   {'citycode': '0750', 'adcode': '440700', 'num': '47', 'name': '江门市'},\n",
       "   {'citycode': '0758', 'adcode': '441200', 'num': '42', 'name': '肇庆市'},\n",
       "   {'citycode': '0754', 'adcode': '440500', 'num': '39', 'name': '汕头市'},\n",
       "   {'citycode': '0795', 'adcode': '360900', 'num': '37', 'name': '宜春市'},\n",
       "   {'citycode': '0768', 'adcode': '445100', 'num': '37', 'name': '潮州市'},\n",
       "   {'citycode': '0592', 'adcode': '350200', 'num': '33', 'name': '厦门市'},\n",
       "   {'citycode': '0763', 'adcode': '441800', 'num': '31', 'name': '清远市'},\n",
       "   {'citycode': '0751', 'adcode': '440200', 'num': '29', 'name': '韶关市'},\n",
       "   {'citycode': '0663', 'adcode': '445200', 'num': '29', 'name': '揭阳市'},\n",
       "   {'citycode': '0759', 'adcode': '440800', 'num': '25', 'name': '湛江市'},\n",
       "   {'citycode': '0668', 'adcode': '440900', 'num': '24', 'name': '茂名市'},\n",
       "   {'citycode': '0796', 'adcode': '360800', 'num': '23', 'name': '吉安市'},\n",
       "   {'citycode': '0898', 'adcode': '460100', 'num': '21', 'name': '海口市'},\n",
       "   {'citycode': '0660', 'adcode': '441500', 'num': '21', 'name': '汕尾市'},\n",
       "   {'citycode': '0753', 'adcode': '441400', 'num': '19', 'name': '梅州市'},\n",
       "   {'citycode': '0596', 'adcode': '350600', 'num': '19', 'name': '漳州市'},\n",
       "   {'citycode': '0771', 'adcode': '450100', 'num': '18', 'name': '南宁市'},\n",
       "   {'citycode': '0899', 'adcode': '460200', 'num': '16', 'name': '三亚市'},\n",
       "   {'citycode': '0731', 'adcode': '430100', 'num': '15', 'name': '长沙市'},\n",
       "   {'citycode': '0595', 'adcode': '350500', 'num': '15', 'name': '泉州市'},\n",
       "   {'citycode': '0579', 'adcode': '330700', 'num': '15', 'name': '金华市'},\n",
       "   {'citycode': '0762', 'adcode': '441600', 'num': '14', 'name': '河源市'},\n",
       "   {'citycode': '021', 'adcode': '310000', 'num': '14', 'name': '上海市'},\n",
       "   {'citycode': '0662', 'adcode': '441700', 'num': '13', 'name': '阳江市'},\n",
       "   {'citycode': '0377', 'adcode': '411300', 'num': '11', 'name': '南阳市'},\n",
       "   {'citycode': '0794', 'adcode': '361000', 'num': '10', 'name': '抚州市'},\n",
       "   {'citycode': '0597', 'adcode': '350800', 'num': '9', 'name': '龙岩市'},\n",
       "   {'citycode': '0551', 'adcode': '340100', 'num': '9', 'name': '合肥市'},\n",
       "   {'citycode': '023', 'adcode': '500000', 'num': '9', 'name': '重庆市'},\n",
       "   {'citycode': '0871', 'adcode': '530100', 'num': '8', 'name': '昆明市'},\n",
       "   {'citycode': '0775', 'adcode': '450900', 'num': '8', 'name': '玉林市'},\n",
       "   {'citycode': '0591', 'adcode': '350100', 'num': '8', 'name': '福州市'},\n",
       "   {'citycode': '0574', 'adcode': '330200', 'num': '8', 'name': '宁波市'},\n",
       "   {'citycode': '0766', 'adcode': '445300', 'num': '7', 'name': '云浮市'},\n",
       "   {'citycode': '028', 'adcode': '510100', 'num': '7', 'name': '成都市'},\n",
       "   {'citycode': '1558', 'adcode': '341200', 'num': '6', 'name': '阜阳市'},\n",
       "   {'citycode': '0792', 'adcode': '360400', 'num': '6', 'name': '九江市'},\n",
       "   {'citycode': '0577', 'adcode': '330300', 'num': '6', 'name': '温州市'},\n",
       "   {'citycode': '010', 'adcode': '110000', 'num': '6', 'name': '北京市'},\n",
       "   {'citycode': '0712', 'adcode': '420900', 'num': '5', 'name': '孝感市'},\n",
       "   {'citycode': '0594', 'adcode': '350300', 'num': '5', 'name': '莆田市'},\n",
       "   {'citycode': '029', 'adcode': '610100', 'num': '5', 'name': '西安市'},\n",
       "   {'citycode': '0790', 'adcode': '360500', 'num': '4', 'name': '新余市'},\n",
       "   {'citycode': '0774', 'adcode': '450400', 'num': '4', 'name': '梧州市'},\n",
       "   {'citycode': '0773', 'adcode': '450300', 'num': '4', 'name': '桂林市'},\n",
       "   {'citycode': '0772', 'adcode': '450200', 'num': '4', 'name': '柳州市'},\n",
       "   {'citycode': '0770', 'adcode': '450600', 'num': '4', 'name': '防城港市'},\n",
       "   {'citycode': '0714', 'adcode': '420200', 'num': '4', 'name': '黄石市'},\n",
       "   {'citycode': '0593', 'adcode': '350900', 'num': '4', 'name': '宁德市'},\n",
       "   {'citycode': '0575', 'adcode': '330600', 'num': '4', 'name': '绍兴市'},\n",
       "   {'citycode': '0573', 'adcode': '330400', 'num': '4', 'name': '嘉兴市'},\n",
       "   {'citycode': '0571', 'adcode': '330100', 'num': '4', 'name': '杭州市'},\n",
       "   {'citycode': '0519', 'adcode': '320400', 'num': '4', 'name': '常州市'},\n",
       "   {'citycode': '0512', 'adcode': '320500', 'num': '4', 'name': '苏州市'},\n",
       "   {'citycode': '0394', 'adcode': '411600', 'num': '4', 'name': '周口市'},\n",
       "   {'citycode': '0376', 'adcode': '411500', 'num': '4', 'name': '信阳市'},\n",
       "   {'citycode': '027', 'adcode': '420100', 'num': '4', 'name': '武汉市'},\n",
       "   {'citycode': '1774', 'adcode': '451100', 'num': '3', 'name': '贺州市'},\n",
       "   {'citycode': '1755', 'adcode': '450800', 'num': '3', 'name': '贵港市'},\n",
       "   {'citycode': '0855', 'adcode': '522600', 'num': '3', 'name': '黔东南苗族侗族自治州'},\n",
       "   {'citycode': '0851', 'adcode': '520100', 'num': '3', 'name': '贵阳市'},\n",
       "   {'citycode': '0805', 'adcode': '460400', 'num': '3', 'name': '儋州市'},\n",
       "   {'citycode': '0779', 'adcode': '450500', 'num': '3', 'name': '北海市'},\n",
       "   {'citycode': '0776', 'adcode': '451000', 'num': '3', 'name': '百色市'},\n",
       "   {'citycode': '0734', 'adcode': '430400', 'num': '3', 'name': '衡阳市'},\n",
       "   {'citycode': '0730', 'adcode': '430600', 'num': '3', 'name': '岳阳市'},\n",
       "   {'citycode': '0510', 'adcode': '320200', 'num': '3', 'name': '无锡市'},\n",
       "   {'citycode': '0856', 'adcode': '520600', 'num': '2', 'name': '铜仁市'},\n",
       "   {'citycode': '0852', 'adcode': '520300', 'num': '2', 'name': '遵义市'},\n",
       "   {'citycode': '0818', 'adcode': '511700', 'num': '2', 'name': '达州市'},\n",
       "   {'citycode': '0791', 'adcode': '360100', 'num': '2', 'name': '南昌市'},\n",
       "   {'citycode': '0777', 'adcode': '450700', 'num': '2', 'name': '钦州市'},\n",
       "   {'citycode': '0746', 'adcode': '431100', 'num': '2', 'name': '永州市'},\n",
       "   {'citycode': '0739', 'adcode': '430500', 'num': '2', 'name': '邵阳市'},\n",
       "   {'citycode': '0735', 'adcode': '431000', 'num': '2', 'name': '郴州市'},\n",
       "   {'citycode': '0722', 'adcode': '421300', 'num': '2', 'name': '随州市'},\n",
       "   {'citycode': '0715', 'adcode': '421200', 'num': '2', 'name': '咸宁市'},\n",
       "   {'citycode': '0713', 'adcode': '421100', 'num': '2', 'name': '黄冈市'},\n",
       "   {'citycode': '0599', 'adcode': '350700', 'num': '2', 'name': '南平市'},\n",
       "   {'citycode': '0598', 'adcode': '350400', 'num': '2', 'name': '三明市'},\n",
       "   {'citycode': '0572', 'adcode': '330500', 'num': '2', 'name': '湖州市'},\n",
       "   {'citycode': '0534', 'adcode': '371400', 'num': '2', 'name': '德州市'},\n",
       "   {'citycode': '0532', 'adcode': '370200', 'num': '2', 'name': '青岛市'},\n",
       "   {'citycode': '0516', 'adcode': '320300', 'num': '2', 'name': '徐州市'},\n",
       "   {'citycode': '0411', 'adcode': '210200', 'num': '2', 'name': '大连市'},\n",
       "   {'citycode': '0374', 'adcode': '411000', 'num': '2', 'name': '许昌市'},\n",
       "   {'citycode': '025', 'adcode': '320100', 'num': '2', 'name': '南京市'},\n",
       "   {'citycode': '022', 'adcode': '120000', 'num': '2', 'name': '天津市'},\n",
       "   {'citycode': '2802', 'adcode': '469027', 'num': '1', 'name': '乐东黎族自治县'},\n",
       "   {'citycode': '1898', 'adcode': '469006', 'num': '1', 'name': '万宁市'},\n",
       "   {'citycode': '1897', 'adcode': '469001', 'num': '1', 'name': '五指山市'},\n",
       "   {'citycode': '1852', 'adcode': '810000', 'num': '1', 'name': '香港特别行政区'},\n",
       "   {'citycode': '1832', 'adcode': '511000', 'num': '1', 'name': '内江市'},\n",
       "   {'citycode': '1433', 'adcode': '222400', 'num': '1', 'name': '延边朝鲜族自治州'},\n",
       "   {'citycode': '0951', 'adcode': '640100', 'num': '1', 'name': '银川市'},\n",
       "   {'citycode': '0917', 'adcode': '610300', 'num': '1', 'name': '宝鸡市'},\n",
       "   {'citycode': '0916', 'adcode': '610700', 'num': '1', 'name': '汉中市'},\n",
       "   {'citycode': '0914', 'adcode': '611000', 'num': '1', 'name': '商洛市'},\n",
       "   {'citycode': '0872', 'adcode': '532900', 'num': '1', 'name': '大理白族自治州'},\n",
       "   {'citycode': '0854', 'adcode': '522700', 'num': '1', 'name': '黔南布依族苗族自治州'},\n",
       "   {'citycode': '0838', 'adcode': '510600', 'num': '1', 'name': '德阳市'},\n",
       "   {'citycode': '0827', 'adcode': '511900', 'num': '1', 'name': '巴中市'},\n",
       "   {'citycode': '0826', 'adcode': '511600', 'num': '1', 'name': '广安市'},\n",
       "   {'citycode': '0817', 'adcode': '511300', 'num': '1', 'name': '南充市'},\n",
       "   {'citycode': '0816', 'adcode': '510700', 'num': '1', 'name': '绵阳市'},\n",
       "   {'citycode': '0807', 'adcode': '469007', 'num': '1', 'name': '东方市'},\n",
       "   {'citycode': '0799', 'adcode': '360300', 'num': '1', 'name': '萍乡市'},\n",
       "   {'citycode': '0798', 'adcode': '360200', 'num': '1', 'name': '景德镇市'},\n",
       "   {'citycode': '0793', 'adcode': '361100', 'num': '1', 'name': '上饶市'},\n",
       "   {'citycode': '0778', 'adcode': '451200', 'num': '1', 'name': '河池市'},\n",
       "   {'citycode': '0744', 'adcode': '430800', 'num': '1', 'name': '张家界市'},\n",
       "   {'citycode': '0737', 'adcode': '430900', 'num': '1', 'name': '益阳市'},\n",
       "   {'citycode': '0733', 'adcode': '430200', 'num': '1', 'name': '株洲市'},\n",
       "   {'citycode': '0732', 'adcode': '430300', 'num': '1', 'name': '湘潭市'},\n",
       "   {'citycode': '0728', 'adcode': '429004', 'num': '1', 'name': '仙桃市'},\n",
       "   {'citycode': '0719', 'adcode': '420300', 'num': '1', 'name': '十堰市'},\n",
       "   {'citycode': '0717', 'adcode': '420500', 'num': '1', 'name': '宜昌市'},\n",
       "   {'citycode': '0716', 'adcode': '421000', 'num': '1', 'name': '荆州市'},\n",
       "   {'citycode': '0710', 'adcode': '420600', 'num': '1', 'name': '襄阳市'},\n",
       "   {'citycode': '0692', 'adcode': '533100', 'num': '1', 'name': '德宏傣族景颇族自治州'},\n",
       "   {'citycode': '0631', 'adcode': '371000', 'num': '1', 'name': '威海市'},\n",
       "   {'citycode': '0576', 'adcode': '331000', 'num': '1', 'name': '台州市'},\n",
       "   {'citycode': '0566', 'adcode': '341700', 'num': '1', 'name': '池州市'},\n",
       "   {'citycode': '0556', 'adcode': '340800', 'num': '1', 'name': '安庆市'},\n",
       "   {'citycode': '0539', 'adcode': '371300', 'num': '1', 'name': '临沂市'},\n",
       "   {'citycode': '0535', 'adcode': '370600', 'num': '1', 'name': '烟台市'},\n",
       "   {'citycode': '0517', 'adcode': '320800', 'num': '1', 'name': '淮安市'},\n",
       "   {'citycode': '0515', 'adcode': '320900', 'num': '1', 'name': '盐城市'},\n",
       "   {'citycode': '0451', 'adcode': '230100', 'num': '1', 'name': '哈尔滨市'},\n",
       "   {'citycode': '0432', 'adcode': '220200', 'num': '1', 'name': '吉林市'},\n",
       "   {'citycode': '0419', 'adcode': '211000', 'num': '1', 'name': '辽阳市'},\n",
       "   {'citycode': '0396', 'adcode': '411700', 'num': '1', 'name': '驻马店市'},\n",
       "   {'citycode': '0395', 'adcode': '411100', 'num': '1', 'name': '漯河市'},\n",
       "   {'citycode': '0379', 'adcode': '410300', 'num': '1', 'name': '洛阳市'},\n",
       "   {'citycode': '0378', 'adcode': '410200', 'num': '1', 'name': '开封市'},\n",
       "   {'citycode': '0375', 'adcode': '410400', 'num': '1', 'name': '平顶山市'},\n",
       "   {'citycode': '0352', 'adcode': '140200', 'num': '1', 'name': '大同市'},\n",
       "   {'citycode': '0335', 'adcode': '130300', 'num': '1', 'name': '秦皇岛市'},\n",
       "   {'citycode': '0315', 'adcode': '130200', 'num': '1', 'name': '唐山市'}]},\n",
       " 'count': '0',\n",
       " 'infocode': '10000',\n",
       " 'pois': [],\n",
       " 'status': '1',\n",
       " 'info': 'OK'}"
      ]
     },
     "execution_count": 39,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 40,
   "id": "41e8c45c",
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 41,
   "id": "c3f71618",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>count</th>\n",
       "      <th>infocode</th>\n",
       "      <th>pois</th>\n",
       "      <th>status</th>\n",
       "      <th>info</th>\n",
       "      <th>suggestion.keywords</th>\n",
       "      <th>suggestion.cities</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0</td>\n",
       "      <td>10000</td>\n",
       "      <td>[]</td>\n",
       "      <td>1</td>\n",
       "      <td>OK</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'citycode': '020', 'adcode': '440100', 'num'...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  count infocode pois status info suggestion.keywords  \\\n",
       "0     0    10000   []      1   OK                  []   \n",
       "\n",
       "                                   suggestion.cities  \n",
       "0  [{'citycode': '020', 'adcode': '440100', 'num'...  "
      ]
     },
     "execution_count": 41,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.json_normalize(r.json())"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "b964e59b",
   "metadata": {},
   "source": [
    "### 基于周边搜索"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "7af18d48",
   "metadata": {},
   "source": [
    "url链接：https://restapi.amap.com/v3/place/around?parameters"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 56,
   "id": "02a8d9db",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'113.678280,23.628439'"
      ]
     },
     "execution_count": 56,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import requests\n",
    "geo_url = \"https://restapi.amap.com/v3/geocode/geo?parameters\"\n",
    "payload = {\n",
    "    \"key\":\"9c99ed4faa0334c7c9d7cb9d12e8b3d4\",\n",
    "    \"address\":\"广东省广州市从化区广州南方学院\"\n",
    "}\n",
    "r = requests.get(url=geo_url, params=payload)\n",
    "广州南方学院_location = r.json()['geocodes'][0]['location']\n",
    "广州南方学院_location"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 57,
   "id": "60cf2467",
   "metadata": {},
   "outputs": [],
   "source": [
    "around_url = 'https://restapi.amap.com/v3/place/around?parameters'\n",
    "\n",
    "payload = {\n",
    "    \"key\":\"9c99ed4faa0334c7c9d7cb9d12e8b3d4\",\n",
    "    \"location\":广州南方学院_location,\n",
    "    \"keywords\":\"潮汕汤粉\"\n",
    "}\n",
    "r = requests.get(around_url,params=payload)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 49,
   "id": "d34ab375",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'suggestion': {'keywords': [], 'cities': []},\n",
       " 'count': '71',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'parent': [],\n",
       "   'address': '碧泉一横街25号',\n",
       "   'distance': '2990',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '27.00',\n",
       "    'opentime2': '10:00-01:00',\n",
       "    'rating': '4.4',\n",
       "    'open_time': '10:00-01:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/448e141be73ed7879809ca5a7cedfe5b'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/30d942c369966fae3bf202d37c69290d'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/40cd7f5171ce7905a3cb596bbbb8aac4'}],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '鱼汤面',\n",
       "   'location': '113.655514,23.645333',\n",
       "   'tel': '18588812880;18902219990',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFI1YW0M'},\n",
       "  {'parent': [],\n",
       "   'address': '环市东路1123号梅花园',\n",
       "   'distance': '8420',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '刺瓜肠粉',\n",
       "   'location': '113.614360,23.580573',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0H24AMMJP'},\n",
       "  {'parent': [],\n",
       "   'address': '镇北路184号',\n",
       "   'distance': '11850',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '3.9',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '潮味猪杂粉汤粉世家',\n",
       "   'location': '113.594619,23.554583',\n",
       "   'tel': '13342807355',\n",
       "   'shopid': [],\n",
       "   'id': 'B0GKHL4L0G'},\n",
       "  {'parent': [],\n",
       "   'address': '向阳路15号',\n",
       "   'distance': '12019',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': '07:00-23:00',\n",
       "    'rating': [],\n",
       "    'open_time': '07:00-23:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/4aa8c3011bb5a503e68bdd78396c6dca'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5bdd905dd772dba84bebb5354d7cef3f'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/dd6dd1a34a77b6bd043cd3d85141041d'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '强记潮汕汤粉',\n",
       "   'location': '113.595208,23.551868',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0IGV74IKR'},\n",
       "  {'parent': [],\n",
       "   'address': '街口街新城东路荔香村6号之二',\n",
       "   'distance': '12865',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050300',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '潮汕记汤粉世家',\n",
       "   'location': '113.588154,23.547597',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0HB319K7P'},\n",
       "  {'parent': [],\n",
       "   'address': '商贸城利源路126号',\n",
       "   'distance': '13192',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '12.00',\n",
       "    'opentime2': [],\n",
       "    'rating': '4.1',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/515c13afa2bad315e4f5779b3793583a'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '潮汕汤粉世家',\n",
       "   'location': '113.606106,23.530113',\n",
       "   'tel': '13922140081',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFK9EZKS'},\n",
       "  {'parent': [],\n",
       "   'address': '江浦街道利源路92号',\n",
       "   'distance': '13251',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;潮州菜',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/f22bfcb56404a2c2b29a091607090a05'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/058bee5371b869e499cffe9ae409038a'},\n",
       "    {'title': [],\n",
       "     'url': 'https://img.alicdn.com/imgextra/i1/3695320962/O1CN013SEW7A1IydiT85irU_!!3695320962-0-kbcontentapng.jpg'}],\n",
       "   'typecode': '050123',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '李记潮汕鲎粿肠粉店',\n",
       "   'location': '113.605108,23.530090',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFLJFTTG'},\n",
       "  {'parent': [],\n",
       "   'address': '凤仪东路142号',\n",
       "   'distance': '13482',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '4.2',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/7f8fcd2baccaac85c4bc4fd21626bfc8'}],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '潮味猪杂',\n",
       "   'location': '113.586274,23.541406',\n",
       "   'tel': '19902289301',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFME4MAT'},\n",
       "  {'parent': [],\n",
       "   'address': '江埔街从城大道158号之一自编3号',\n",
       "   'distance': '13840',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': '每天08:00-22:00',\n",
       "    'rating': '4.0',\n",
       "    'open_time': '08:00-22:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'photos': [{'title': '五指毛桃炖鸡汤',\n",
       "     'url': 'https://img.alicdn.com/imgextra/i1/2211768253229/O1CN014OEiGZ1ZivZsfXYoH_!!2211768253229-2-koubei.png'},\n",
       "    {'title': '红辣椒炒牛肉',\n",
       "     'url': 'https://img.alicdn.com/imgextra/i1/2211768253229/O1CN01FQ1QmV1ZivZrgqjpu_!!2211768253229-2-koubei.png'},\n",
       "    {'title': '可乐鸡盖浇饭',\n",
       "     'url': 'https://img.alicdn.com/imgextra/i1/2211768253229/O1CN01G1nstY1ZivZkiqZpc_!!2211768253229-2-koubei.png'}],\n",
       "   'typecode': '050300',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '顺意潮汕汤粉世家(从化店)',\n",
       "   'location': '113.596213,23.529442',\n",
       "   'tel': '13926031399',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFME0SW9'},\n",
       "  {'parent': [],\n",
       "   'address': '利秦路23号',\n",
       "   'distance': '15803',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '4.0',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050300',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '潮客汤粉',\n",
       "   'location': '113.525552,23.604524',\n",
       "   'tel': '15920899535',\n",
       "   'shopid': [],\n",
       "   'id': 'B0GRKX6VH7'},\n",
       "  {'parent': [],\n",
       "   'address': '府前路从化区永安幼儿园西北侧约70米',\n",
       "   'distance': '18534',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050300',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '红记潮汕海鲜汤粉面(第168家分店)',\n",
       "   'location': '113.504502,23.579833',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0H231RTXO'},\n",
       "  {'parent': [],\n",
       "   'address': '派潭镇群津街71号',\n",
       "   'distance': '18845',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/d423b1007dac398b7aceeaab6f303fa3'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '增城区',\n",
       "   'name': '潮味汤粉王',\n",
       "   'location': '113.781752,23.488213',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0H3G75E6L'},\n",
       "  {'parent': [],\n",
       "   'address': '城鳌大道东鳌头人和市场东南侧约190米',\n",
       "   'distance': '23695',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050300',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '潮汕猪杂汤粉',\n",
       "   'location': '113.448518,23.597008',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFMFFFZS'},\n",
       "  {'parent': [],\n",
       "   'address': '高田路三和居南侧约80米',\n",
       "   'distance': '27907',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050300',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '潮汕汤粉重庆酸辣粉',\n",
       "   'location': '113.489912,23.446712',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0H02HEJDA'},\n",
       "  {'parent': [],\n",
       "   'address': '从化区经济开发区回归路5号之8',\n",
       "   'distance': '28159',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '4.3',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;潮州菜',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0d0e97f99f4ce999e35b334fe9332887'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0698198783e0bc13d6bcb05845df2075'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/530a06ff975d4f9d16614d688f14d8ea'}],\n",
       "   'typecode': '050123',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '潮汕隆江猪脚饭原味汤粉',\n",
       "   'location': '113.492492,23.441421',\n",
       "   'tel': '13502468456',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFI9G740'},\n",
       "  {'parent': [],\n",
       "   'address': '回归路与回归路三巷交叉口北50米',\n",
       "   'distance': '28185',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '潮汕原味汤粉世家',\n",
       "   'location': '113.492319,23.441020',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFKAD9M1'},\n",
       "  {'parent': 'B00141JB70',\n",
       "   'address': '太平镇新平路143号',\n",
       "   'distance': '29627',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '3.8',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/9a17ac47eb07ce00cae6b7d6da1e0c35'}],\n",
       "   'typecode': '050300',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '324',\n",
       "   'adname': '从化区',\n",
       "   'name': '汤粉世家',\n",
       "   'location': '113.484704,23.430105',\n",
       "   'tel': '18025596281',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFK6BO2B'},\n",
       "  {'parent': [],\n",
       "   'address': '中新镇福和新桥路14号',\n",
       "   'distance': '30247',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': '周一至周日:06:30-02:00',\n",
       "    'rating': '3.8',\n",
       "    'open_time': '06:30-02:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/be69b782372d337d554798a8d661f6c8'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0193ec77c29025cd0f2fd5fcc0fcf25a'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/94e42be318ea4050a373530f979cb370'}],\n",
       "   'typecode': '050300',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '增城区',\n",
       "   'name': '潮汕猪杂汤粉世家(福和店)',\n",
       "   'location': '113.632795,23.359940',\n",
       "   'tel': '13250177669',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFK7GUJ8'},\n",
       "  {'parent': [],\n",
       "   'address': '九佛西路登塘幼儿园西侧约170米',\n",
       "   'distance': '31498',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '3.4',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050300',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '白云区',\n",
       "   'name': '隆江猪脚饭',\n",
       "   'location': '113.476781,23.413852',\n",
       "   'tel': '15889805430',\n",
       "   'shopid': [],\n",
       "   'id': 'B0HRRRVKQS'},\n",
       "  {'parent': [],\n",
       "   'address': '横栋岭南路与中心五路交叉口东北约80米',\n",
       "   'distance': '32075',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050300',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '增城区',\n",
       "   'name': '潮汕汤粉快餐',\n",
       "   'location': '113.810140,23.366907',\n",
       "   'tel': '15800029302',\n",
       "   'shopid': [],\n",
       "   'id': 'B0H0UCOVCO'}],\n",
       " 'status': '1',\n",
       " 'info': 'OK'}"
      ]
     },
     "execution_count": 49,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 58,
   "id": "fd73f5f4",
   "metadata": {},
   "outputs": [],
   "source": [
    "around_url = 'https://restapi.amap.com/v3/place/around?parameters'\n",
    "\n",
    "payload = {\n",
    "    \"key\":\"9c99ed4faa0334c7c9d7cb9d12e8b3d4\",\n",
    "    \"location\":广州南方学院_location,\n",
    "    \"types\":\"050100\",\n",
    "    'page':3\n",
    "}\n",
    "r = requests.get(around_url,params=payload)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 59,
   "id": "28f8c81e",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'suggestion': {'keywords': [], 'cities': []},\n",
       " 'count': '244',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'parent': [],\n",
       "   'address': '温泉乌土村随便公寓',\n",
       "   'distance': '744',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '开心便当',\n",
       "   'location': '113.680114,23.621967',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0H1ML1SQF'},\n",
       "  {'parent': [],\n",
       "   'address': '美味阁',\n",
       "   'distance': '770',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '2.5',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '忍者拉面(中大店)',\n",
       "   'location': '113.679780,23.621658',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0H3XY2P42'},\n",
       "  {'parent': [],\n",
       "   'address': '广州南方学院东区食堂第四',\n",
       "   'distance': '781',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': '09:00-21:00',\n",
       "    'rating': '3.4',\n",
       "    'open_time': '09:00-21:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '汕头粿条汤',\n",
       "   'location': '113.682317,23.634404',\n",
       "   'tel': '13539626288',\n",
       "   'shopid': [],\n",
       "   'id': 'B0IBA9VKTX'},\n",
       "  {'parent': [],\n",
       "   'address': '广州南方学院宿舍一楼门口',\n",
       "   'distance': '795',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '广州南方学院东学楼30号-取餐柜',\n",
       "   'location': '113.682747,23.634293',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0HK07OHB3'},\n",
       "  {'parent': [],\n",
       "   'address': '乌土村老虎形29号104',\n",
       "   'distance': '843',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '2.5',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '大胡子砂锅麻辣烫(中大店)',\n",
       "   'location': '113.679891,23.621011',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0H1M7XMPA'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇乌土村老虎型街2号',\n",
       "   'distance': '870',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;特色/地方风味餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050118',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '上一烧烤',\n",
       "   'location': '113.680262,23.620830',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0HRO7M74I'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇龙泉路自编00945号之二、之三(乡村公寓旁)',\n",
       "   'distance': '955',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;特色/地方风味餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050118',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '夜烤(中大店)',\n",
       "   'location': '113.674410,23.620619',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0HROCL0BJ'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇乌土村上围2队13号',\n",
       "   'distance': '1208',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '3.5',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '蒸美味(中大店)',\n",
       "   'location': '113.680637,23.617803',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0H1M701KN'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇乌土村上围2队13号',\n",
       "   'distance': '1251',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '开心花甲简餐(中大店)',\n",
       "   'location': '113.681729,23.617653',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0HROCM2S7'},\n",
       "  {'parent': [],\n",
       "   'address': '广东省广州市从化区温泉镇金鸡村',\n",
       "   'distance': '1685',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '3.9',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/e1fbce962152269ce8e8337439faf543'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/93189de5d7da3e16ec5ee45138b49459'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/bcd951f0b726f17fe1128035036decab'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '小萌牛全民总动员',\n",
       "   'location': '113.677109,23.613332',\n",
       "   'tel': '15813351058',\n",
       "   'shopid': [],\n",
       "   'id': 'B0GUDHQSG9'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉大道(中山大学旁)卫东村卫东村委南侧50米处',\n",
       "   'distance': '2149',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '84.00',\n",
       "    'opentime2': [],\n",
       "    'rating': '4.5',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/a1a2e0ce8f90341a6ed407191ba219ff'},\n",
       "    {'title': [],\n",
       "     'url': 'http://aos-cdn-image.amap.com/sns/ugccomment/057b0581-fed7-4665-906e-7c268f5a59c5.jpg'},\n",
       "    {'title': [],\n",
       "     'url': 'http://aos-cdn-image.amap.com/sns/ugccomment/c7aefe58-08ee-4f2d-aecd-f5cf512c31a6.jpg'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '卫东农庄',\n",
       "   'location': '113.677608,23.647740',\n",
       "   'tel': '020-37977399',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFGKX9PY'},\n",
       "  {'parent': 'B0G1GMN7P5',\n",
       "   'address': '温泉镇永福新村5号',\n",
       "   'distance': '2228',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '72.00',\n",
       "    'opentime2': [],\n",
       "    'rating': '4.1',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/e305075a91afdc955a0f7019eeb828bd'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/84f0b0637def8d4833a90ec39502e4fa'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/222c7b0d4cd7d7dc8aa5f16b4c4ad457'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '324',\n",
       "   'adname': '从化区',\n",
       "   'name': '凤仙餐馆',\n",
       "   'location': '113.661270,23.640879',\n",
       "   'tel': '020-87838990',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFHE66RZ'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇平岗村龙江里',\n",
       "   'distance': '2261',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '4.0',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/a411c32cc9bdea1f86b9baef0278924d'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '忆乡园农庄',\n",
       "   'location': '113.694008,23.614122',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFHQT3YZ'},\n",
       "  {'parent': 'B0G1GMN7P5',\n",
       "   'address': '温泉镇永福邨B座9-10号',\n",
       "   'distance': '2266',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '48.00',\n",
       "    'opentime2': '10:30-14:00；16:00-23:00',\n",
       "    'rating': '4.8',\n",
       "    'open_time': '10:30-14:00 16:00-23:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/6b93aa1a74a1aaf5a3642b145c680ff2'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1b7047e16ead7cd033fa5e402727a145'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1e1b784bea702c98474a93a8a7fc6c77'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '324',\n",
       "   'adname': '从化区',\n",
       "   'name': '仙溪美食农庄20年老字号(温泉镇店)',\n",
       "   'location': '113.660610,23.640756',\n",
       "   'tel': '13725183498',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFFAIVRY'},\n",
       "  {'parent': 'B0G1GMN7P5',\n",
       "   'address': '温泉镇永福路1号永福漫街A区3楼301-302',\n",
       "   'distance': '2312',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': '17:30-01:30',\n",
       "    'rating': '4.0',\n",
       "    'open_time': '17:30-01:30',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/d4bed1302ad3537e94ec4af7aaebc55c'},\n",
       "    {'title': [],\n",
       "     'url': 'http://aos-cdn-image.amap.com/sns/ugccomment/202843a8-75dd-4d2e-98c4-213a74192166.jpg'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': '324',\n",
       "   'adname': '从化区',\n",
       "   'name': '空中之声烧烤吧',\n",
       "   'location': '113.659544,23.640329',\n",
       "   'tel': '13926235161',\n",
       "   'shopid': [],\n",
       "   'id': 'B0GK4ORPPU'},\n",
       "  {'parent': 'B0G1GMN7P5',\n",
       "   'address': '温泉镇永福漫街A区2楼',\n",
       "   'distance': '2318',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '56.00',\n",
       "    'opentime2': '10:00-22:00',\n",
       "    'rating': '4.5',\n",
       "    'open_time': '10:00-22:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/2044a40b170256a5fb05299e3af9f175'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/4f47d23da7c0958622760a4035567ee3'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/e017c519fb053cbf01614bf6bbb0fffa'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': '324',\n",
       "   'adname': '从化区',\n",
       "   'name': '温陶居私房菜',\n",
       "   'location': '113.659697,23.640419',\n",
       "   'tel': '13925068523',\n",
       "   'shopid': [],\n",
       "   'id': 'B0G304EZT6'},\n",
       "  {'parent': [],\n",
       "   'address': '源湖前街与龙泉路交叉口东南约220米',\n",
       "   'distance': '2363',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '3.9',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '荔蜜园餐厅',\n",
       "   'location': '113.662858,23.612591',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B00141JCPD'},\n",
       "  {'parent': 'B0G1GMN7P5',\n",
       "   'address': '温泉镇亨来斯登酒店',\n",
       "   'distance': '2403',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '2.4',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;特色/地方风味餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050118',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '324',\n",
       "   'adname': '从化区',\n",
       "   'name': '德州烧烤(中大店)',\n",
       "   'location': '113.658707,23.640472',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0HROCKB60'},\n",
       "  {'parent': 'B0G1GMN7P5',\n",
       "   'address': '温泉镇亨来斯登酒店',\n",
       "   'distance': '2403',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '2.3',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;特色/地方风味餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050118',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '324',\n",
       "   'adname': '从化区',\n",
       "   'name': '和记烧烤(中大店)',\n",
       "   'location': '113.658707,23.640472',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0H1M7Y7LR'},\n",
       "  {'parent': [],\n",
       "   'address': '温泉镇温泉东路1号(加油站斜坡隔壁)',\n",
       "   'distance': '2406',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '58.00',\n",
       "    'opentime2': '10:00-14:00；16:30-01:30',\n",
       "    'rating': '4.4',\n",
       "    'open_time': '10:00-14:00 16:30-01:30',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;广东菜(粤菜)',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/071726c1bd55bfe415522a316aad580d'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b80d1a1da127837c7ffcf654d25802b4'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/a66185881412fc05d73fce7b318b35e2'}],\n",
       "   'typecode': '050103',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '品味烧鸡天下菜馆',\n",
       "   'location': '113.658187,23.639770',\n",
       "   'tel': '020-37502123',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFGW1SIX'}],\n",
       " 'status': '1',\n",
       " 'info': 'OK'}"
      ]
     },
     "execution_count": 59,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 60,
   "id": "d3c7242d",
   "metadata": {},
   "outputs": [],
   "source": [
    "around_url = 'https://restapi.amap.com/v3/place/around?parameters'\n",
    "\n",
    "payload = {\n",
    "    \"key\":\"9c99ed4faa0334c7c9d7cb9d12e8b3d4\",\n",
    "    \"location\":广州南方学院_location,\n",
    "    \"keywords\":\"潮汕汤粉\"\n",
    "}\n",
    "r = requests.get(around_url,params=payload)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 55,
   "id": "8f1fbb11",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'suggestion': {'keywords': [], 'cities': []},\n",
       " 'count': '71',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'parent': [],\n",
       "   'address': '碧泉一横街25号',\n",
       "   'distance': '2990',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '27.00',\n",
       "    'opentime2': '10:00-01:00',\n",
       "    'rating': '4.4',\n",
       "    'open_time': '10:00-01:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/448e141be73ed7879809ca5a7cedfe5b'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/30d942c369966fae3bf202d37c69290d'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/40cd7f5171ce7905a3cb596bbbb8aac4'}],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '鱼汤面',\n",
       "   'location': '113.655514,23.645333',\n",
       "   'tel': '18588812880;18902219990',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFI1YW0M'},\n",
       "  {'parent': [],\n",
       "   'address': '环市东路1123号梅花园',\n",
       "   'distance': '8420',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '刺瓜肠粉',\n",
       "   'location': '113.614360,23.580573',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0H24AMMJP'},\n",
       "  {'parent': [],\n",
       "   'address': '镇北路184号',\n",
       "   'distance': '11850',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '3.9',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '潮味猪杂粉汤粉世家',\n",
       "   'location': '113.594619,23.554583',\n",
       "   'tel': '13342807355',\n",
       "   'shopid': [],\n",
       "   'id': 'B0GKHL4L0G'},\n",
       "  {'parent': [],\n",
       "   'address': '向阳路15号',\n",
       "   'distance': '12019',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': '07:00-23:00',\n",
       "    'rating': [],\n",
       "    'open_time': '07:00-23:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/4aa8c3011bb5a503e68bdd78396c6dca'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5bdd905dd772dba84bebb5354d7cef3f'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/dd6dd1a34a77b6bd043cd3d85141041d'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '强记潮汕汤粉',\n",
       "   'location': '113.595208,23.551868',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0IGV74IKR'},\n",
       "  {'parent': [],\n",
       "   'address': '街口街新城东路荔香村6号之二',\n",
       "   'distance': '12865',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050300',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '潮汕记汤粉世家',\n",
       "   'location': '113.588154,23.547597',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0HB319K7P'},\n",
       "  {'parent': [],\n",
       "   'address': '商贸城利源路126号',\n",
       "   'distance': '13192',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '12.00',\n",
       "    'opentime2': [],\n",
       "    'rating': '4.1',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/515c13afa2bad315e4f5779b3793583a'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '潮汕汤粉世家',\n",
       "   'location': '113.606106,23.530113',\n",
       "   'tel': '13922140081',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFK9EZKS'},\n",
       "  {'parent': [],\n",
       "   'address': '江浦街道利源路92号',\n",
       "   'distance': '13251',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;潮州菜',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/f22bfcb56404a2c2b29a091607090a05'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/058bee5371b869e499cffe9ae409038a'},\n",
       "    {'title': [],\n",
       "     'url': 'https://img.alicdn.com/imgextra/i1/3695320962/O1CN013SEW7A1IydiT85irU_!!3695320962-0-kbcontentapng.jpg'}],\n",
       "   'typecode': '050123',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '李记潮汕鲎粿肠粉店',\n",
       "   'location': '113.605108,23.530090',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFLJFTTG'},\n",
       "  {'parent': [],\n",
       "   'address': '凤仪东路142号',\n",
       "   'distance': '13482',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '4.2',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/7f8fcd2baccaac85c4bc4fd21626bfc8'}],\n",
       "   'typecode': '050000',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '潮味猪杂',\n",
       "   'location': '113.586274,23.541406',\n",
       "   'tel': '19902289301',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFME4MAT'},\n",
       "  {'parent': [],\n",
       "   'address': '江埔街从城大道158号之一自编3号',\n",
       "   'distance': '13840',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': '每天08:00-22:00',\n",
       "    'rating': '4.0',\n",
       "    'open_time': '08:00-22:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'photos': [{'title': '五指毛桃炖鸡汤',\n",
       "     'url': 'https://img.alicdn.com/imgextra/i1/2211768253229/O1CN014OEiGZ1ZivZsfXYoH_!!2211768253229-2-koubei.png'},\n",
       "    {'title': '红辣椒炒牛肉',\n",
       "     'url': 'https://img.alicdn.com/imgextra/i1/2211768253229/O1CN01FQ1QmV1ZivZrgqjpu_!!2211768253229-2-koubei.png'},\n",
       "    {'title': '可乐鸡盖浇饭',\n",
       "     'url': 'https://img.alicdn.com/imgextra/i1/2211768253229/O1CN01G1nstY1ZivZkiqZpc_!!2211768253229-2-koubei.png'}],\n",
       "   'typecode': '050300',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '顺意潮汕汤粉世家(从化店)',\n",
       "   'location': '113.596213,23.529442',\n",
       "   'tel': '13926031399',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFME0SW9'},\n",
       "  {'parent': [],\n",
       "   'address': '利秦路23号',\n",
       "   'distance': '15803',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '4.0',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050300',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '潮客汤粉',\n",
       "   'location': '113.525552,23.604524',\n",
       "   'tel': '15920899535',\n",
       "   'shopid': [],\n",
       "   'id': 'B0GRKX6VH7'},\n",
       "  {'parent': [],\n",
       "   'address': '府前路从化区永安幼儿园西北侧约70米',\n",
       "   'distance': '18534',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050300',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '红记潮汕海鲜汤粉面(第168家分店)',\n",
       "   'location': '113.504502,23.579833',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0H231RTXO'},\n",
       "  {'parent': [],\n",
       "   'address': '派潭镇群津街71号',\n",
       "   'distance': '18845',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/d423b1007dac398b7aceeaab6f303fa3'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '增城区',\n",
       "   'name': '潮味汤粉王',\n",
       "   'location': '113.781752,23.488213',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0H3G75E6L'},\n",
       "  {'parent': [],\n",
       "   'address': '城鳌大道东鳌头人和市场东南侧约190米',\n",
       "   'distance': '23695',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050300',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '潮汕猪杂汤粉',\n",
       "   'location': '113.448518,23.597008',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFMFFFZS'},\n",
       "  {'parent': [],\n",
       "   'address': '高田路三和居南侧约80米',\n",
       "   'distance': '27907',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050300',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '潮汕汤粉重庆酸辣粉',\n",
       "   'location': '113.489912,23.446712',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0H02HEJDA'},\n",
       "  {'parent': [],\n",
       "   'address': '从化区经济开发区回归路5号之8',\n",
       "   'distance': '28159',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '4.3',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;潮州菜',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0d0e97f99f4ce999e35b334fe9332887'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0698198783e0bc13d6bcb05845df2075'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/530a06ff975d4f9d16614d688f14d8ea'}],\n",
       "   'typecode': '050123',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '潮汕隆江猪脚饭原味汤粉',\n",
       "   'location': '113.492492,23.441421',\n",
       "   'tel': '13502468456',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFI9G740'},\n",
       "  {'parent': [],\n",
       "   'address': '回归路与回归路三巷交叉口北50米',\n",
       "   'distance': '28185',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '从化区',\n",
       "   'name': '潮汕原味汤粉世家',\n",
       "   'location': '113.492319,23.441020',\n",
       "   'tel': [],\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFKAD9M1'},\n",
       "  {'parent': 'B00141JB70',\n",
       "   'address': '太平镇新平路143号',\n",
       "   'distance': '29627',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '3.8',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/9a17ac47eb07ce00cae6b7d6da1e0c35'}],\n",
       "   'typecode': '050300',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '324',\n",
       "   'adname': '从化区',\n",
       "   'name': '汤粉世家',\n",
       "   'location': '113.484704,23.430105',\n",
       "   'tel': '18025596281',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFK6BO2B'},\n",
       "  {'parent': [],\n",
       "   'address': '中新镇福和新桥路14号',\n",
       "   'distance': '30247',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': '周一至周日:06:30-02:00',\n",
       "    'rating': '3.8',\n",
       "    'open_time': '06:30-02:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/be69b782372d337d554798a8d661f6c8'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0193ec77c29025cd0f2fd5fcc0fcf25a'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/94e42be318ea4050a373530f979cb370'}],\n",
       "   'typecode': '050300',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '增城区',\n",
       "   'name': '潮汕猪杂汤粉世家(福和店)',\n",
       "   'location': '113.632795,23.359940',\n",
       "   'tel': '13250177669',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFK7GUJ8'},\n",
       "  {'parent': [],\n",
       "   'address': '九佛西路登塘幼儿园西侧约170米',\n",
       "   'distance': '31498',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '3.4',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050300',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '白云区',\n",
       "   'name': '隆江猪脚饭',\n",
       "   'location': '113.476781,23.413852',\n",
       "   'tel': '15889805430',\n",
       "   'shopid': [],\n",
       "   'id': 'B0HRRRVKQS'},\n",
       "  {'parent': [],\n",
       "   'address': '横栋岭南路与中心五路交叉口东北约80米',\n",
       "   'distance': '32075',\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': [],\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'photos': [],\n",
       "   'typecode': '050300',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '增城区',\n",
       "   'name': '潮汕汤粉快餐',\n",
       "   'location': '113.810140,23.366907',\n",
       "   'tel': '15800029302',\n",
       "   'shopid': [],\n",
       "   'id': 'B0H0UCOVCO'}],\n",
       " 'status': '1',\n",
       " 'info': 'OK'}"
      ]
     },
     "execution_count": 55,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 33,
   "id": "9ddaf160",
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 34,
   "id": "848a63e6",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>count</th>\n",
       "      <th>infocode</th>\n",
       "      <th>pois</th>\n",
       "      <th>status</th>\n",
       "      <th>info</th>\n",
       "      <th>suggestion.keywords</th>\n",
       "      <th>suggestion.cities</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>71</td>\n",
       "      <td>10000</td>\n",
       "      <td>[{'parent': [], 'address': '碧泉一横街25号', 'distan...</td>\n",
       "      <td>1</td>\n",
       "      <td>OK</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  count infocode                                               pois status  \\\n",
       "0    71    10000  [{'parent': [], 'address': '碧泉一横街25号', 'distan...      1   \n",
       "\n",
       "  info suggestion.keywords suggestion.cities  \n",
       "0   OK                  []                []  "
      ]
     },
     "execution_count": 34,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.json_normalize(r.json())"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "bab16260",
   "metadata": {},
   "source": [
    "## 天气查询"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 63,
   "id": "2888f959",
   "metadata": {},
   "outputs": [],
   "source": [
    "WeatherInfo_url = 'https://restapi.amap.com/v3/weather/weatherInfo?parameters'\n",
    "\n",
    "payload = {\n",
    "    'key':'9c99ed4faa0334c7c9d7cb9d12e8b3d4',\n",
    "    'city':'516500',\n",
    "    'extensions':'all',\n",
    "    \n",
    "}\n",
    "\n",
    "r = requests.get(url=WeatherInfo_url, params=payload )"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 64,
   "id": "273da6d1",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'forecasts': [{'casts': []}]}"
      ]
     },
     "execution_count": 64,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 69,
   "id": "acc78c71",
   "metadata": {},
   "outputs": [],
   "source": [
    "IP_url = 'https://restapi.amap.com/v3/ip?parameters'\n",
    "\n",
    "payload = {\n",
    "    'key':'9c99ed4faa0334c7c9d7cb9d12e8b3d4',\n",
    "    \n",
    "}\n",
    "\n",
    "r = requests.get(url=IP_url, params=payload )"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 70,
   "id": "8e93298c",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'province': '广东省',\n",
       " 'city': '广州市',\n",
       " 'adcode': '440100',\n",
       " 'rectangle': '113.1017375,22.93212254;113.6770499,23.3809537'}"
      ]
     },
     "execution_count": 70,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "e75ea863",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.7"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
